home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / text / faqs / mh-faq < prev    next >
Encoding:
Internet Message Format  |  1994-05-16  |  59.5 KB

  1. Subject: MH Frequently Asked Questions (FAQ) with Answers
  2. Newsgroups: comp.mail.mh,news.answers,comp.answers
  3. From: Bill Wohler <wohler@newt.com>
  4. Date: 14 May 1994 10:18:29 GMT
  5.  
  6. Archive-name: mh-faq
  7. Last-modified: $Date: 1994/05/13 17:19:47 $
  8. Version: $Revision: 94.5 $
  9.  
  10.   This is a living list of frequently asked questions on the mailer
  11.   user interface, Mail Handler, or MH.  The point of this is to
  12.   circulate existing information, and avoid rehashing old answers.
  13.   Better to build on top than start again.  Please read this document
  14.   before ever posting to this newsgroup.
  15.  
  16.   This article is posted monthly.  If it has already expired and
  17.   you're not reading this, you can hope that you saved the last bit of
  18.   question 3 so that you can get a copy yourself.
  19.  
  20.   Please do not post an answer when someone posts a frequently asked
  21.   question, as I will always e-mail a reply.  This ensures that
  22.   everybody gets their question answered fully and eliminates
  23.   unnecessary traffic in this newsgroup.
  24.  
  25.   Your comments, additions and fixes to this list are welcome: please
  26.   send them to Bill Wohler <wohler@newt.com>.
  27.  
  28.   
  29. Subject: Table of Contents
  30. From: Preface
  31.  
  32. Legend: + new, - deleted, ! changed
  33.  
  34. Introductory
  35.  
  36.  1.  Why should I use MH?
  37. !2.  What is the current version/status of MH?
  38. !3.  Where can I get MH?
  39. !4.  What references exist for MH?
  40. !5.  What other MH software is available?
  41.  6.  How can I print a MH manual?
  42.  7.  How should I report bugs?
  43.  8.  How can I convert from my mailer to MH?
  44.  
  45. Building MH
  46.  
  47.  10. What machines does MH run on?
  48.  11. How do I build MH?
  49.  12. What options should I use?
  50. !13. Fixing "post: problem initializing server; [BHST] no servers available"
  51.  14. Where can I get POP3?
  52.  15. What do I do if scan shows the wrong date?
  53.  16. Why slocal writes messages to system maildrop that from(1) can't read.
  54.  17. Why does repl add a "Re:" to a message that already has one?
  55.  18. Does MH support IMAP2 (RFC 1064)?
  56.  19. Why does "mailgroup mail" only affect inc and not slocal?
  57.  
  58. Using MH
  59.  
  60.  30. Where can I read about slocal and the format of the .maildelivery file?
  61.  31. How do I include messages in repl with or without ">"?
  62.  32. How can I eliminate duplicate copies of letters to myself?
  63.  33. How would one go about reading usenet with MH?
  64.  34. Can I append MH messages (ie. +inbox/1) to a UNIX mailbox format file?
  65. !35. How can I include my signature?
  66.  36. What to do with "Problems with edit - draft removed".
  67.  37. How do I call my editor with arguments?
  68.  38. How do I debug my .maildelivery file?  
  69.  39. How can I digestify the messages in a folder for mail to another user?
  70.  40. Can I run my message through a program (ie. ispell) before sending?  
  71.  41. Can I append MH messages to a GNU Emacs rmail BABYL-format file?
  72.  42. Is there documentation for mh-e?
  73.  43. How can I change my return address?
  74.  44. How can I change my From header?
  75.  45. What to do with "bad address 'xxx' - no at-sign after local-part".
  76.  46. How can I search through multiple folders?
  77.  47. Why isn't slocal working?
  78.  48. Fixing "post: problem initializing server; [RPLY] 503 Sender
  79.      already specified" 
  80. +49. Why don't MH format commands such as %(friendly) work?
  81. +50. How can mail aliases can be expanded in mh-e?
  82.  
  83. Xmh
  84.  
  85.  60. How can I get xmh to use Emacs as the editor?
  86.  61. Does xmh support subfolders?
  87.  62. How do I precede included messages with ">" when replying in xmh?
  88.  
  89. Appendix
  90.  
  91.  Glossary, Acknowledgements, Copyright and Warranty
  92.  Switching xmh's editor
  93.  babyl2mh.pl
  94.  inco
  95.  
  96.   
  97. Subject: Viewing This Article
  98. From: Preface
  99.  
  100.   To skip to a particular question numbered xx, use "/^F.*xx" with most
  101.   pagers.  In GNU Emacs type "M-C-s ^F.*xx", (or C-r to search backwards),
  102.   followed by ESC to end the search.  "-xx" is often sufficient.
  103.  
  104.   To skip to new or changed questions, use "/^S.*[!+]" with most pagers and
  105.   "M-C-s ^S.*[!+]" in GNU Emacs.
  106.  
  107.   This article is in digest format.  Nn may have already broken this
  108.   message into separate articles; if not, then type "G %".  In rn, use
  109.   ^G to skip sections.
  110.  
  111.   This article is treated as an outline when edited by GNU Emacs.
  112.   Run "M-x describe-mode" to see available outline-mode commands.
  113.   Useful commands are "C-c C-s" (show-subtree) and "M-x show-all"
  114.  
  115.   Numbers in square brackets denote the month and year of the last
  116.   update.
  117.  
  118.   
  119. Subject: Why should I use MH?
  120. From: Intro-1
  121.  
  122.   The MH message handling system is a set of electronic mail programs
  123.   in the public domain.  If your computer runs UNIX, it can probably
  124.   run MH.
  125.  
  126.   The big difference between MH and most other "mail user agents" is
  127.   that you can use MH from a UNIX shell prompt.  In MH, each command
  128.   is a separate program, and the shell is used as an interpreter.  So,
  129.   all the power of UNIX shells (pipes, redirection, history, aliases,
  130.   and so on) works with MH--you don't have to learn a new interface.
  131.   Other mail agents have their own command interpreter for their
  132.   individual mail commands (although the mush mail agent simulates a
  133.   UNIX shell).
  134.  
  135.   Because MH commands aren't part of a monolithic mail system, you can
  136.   use them at any time; you don't have to start or quit the mail
  137.   agent.  Because you use them from a shell prompt, you can use all
  138.   the power of the shell.
  139.  
  140.   If your shell has time-saving aliases or functions (and most do),
  141.   you'll be able to use them with MH, of course.  And because MH isn't
  142.   a monolithic mail agent, you can use MH commands in UNIX shell
  143.   scripts, or call them from programs in high-level languages like C.
  144.  
  145.   Unlike most mail agents, MH keeps each message in a separate file.
  146.   The filename is the message number.  To rearrange the messages, MH
  147.   just changes the filenames.  MH can use standard UNIX filesystem
  148.   operations such as removing, copying and linking messages.  The
  149.   message files are grouped into one or more folders, which are
  150.   actually UNIX directories.
  151.  
  152.   MH is free, powerful, flexible--and the basics are easy to learn.
  153.   --Jerry Peek <jerry@ora.com>
  154.  
  155.   
  156. Subject: ! What is the current version/status of MH.
  157. From: Intro-2
  158.  
  159.   The current version of MH is 6.8.3.
  160.  
  161.   This version includes MIME, a multi-media MH package that implements
  162.   the new IETF work on Multi-media 822 (MIME).  This allows you to
  163.   include things like audio, graphics, and the like, in your mail
  164.   messages.  --Marshall Rose <mrose@dbc.mtview.ca.us>
  165.  
  166.   MH now works with Kerberos as well.
  167.   
  168.   In addition, a new program called mhparam extracts arguments from
  169.   .mh_profile which is useful in shellscripts. 
  170.  
  171.   Please see the file CHANGES in the distribution for more details. [5.94]
  172.  
  173.   
  174. Subject: ! Where can I get MH?
  175. From: Intro-3
  176.  
  177.   MH comes standard with:
  178.  
  179.     Control Data Corp. CDC4680-MP . . . EMH Version 1.4.2 (modified MH)
  180.     DEC Ultrix 3.1  . . . . . . . . . . MH Version 6.5
  181.     DEC Ultrix 4.2A . . . . . . . . . . MH Version 6.7.1
  182.     Evans and Sutherland ES/OS 2.3  . . MH Version 6.6
  183.     IBM PS/2 AIX 1.3  . . . . . . . . . MH Version 6.4
  184.     IBM RISC System/6000 AIX 3.x  . . . MH Version 6.6
  185.     MIPS RISC/OS 4.52 . . . . . . . . . MH Version 6.6
  186.     Tektronix UTek  . . . . . . . . . . MH (Version Unknown)
  187.     Table maintained by James R. Hamilton <jrh@jrh.guild.org> [5.94].
  188.  
  189.   via anonymous ftp:                        [5.94]
  190.     ftp.ics.uci.edu [128.195.1.1]    mh/mh-6.8.tar.Z        2MB
  191.     ftp.uu.net [192.48.96.9]        networking/mail/mh/mh-6.8.tar.Z
  192.     krynn.efd.lth.se [130.235.48.11]    pub/mail/mh-6.8.tar.Z
  193.  
  194.   via uucp:
  195.     The following shell script is one example of how to queue jobs for
  196.     downloading the files from UUNET via UUCP:
  197.  
  198.     #!/bin/sh
  199.     SRC=uunet!~/mail/mh/tar/mh-6.8.tar.Z-split
  200.     DST=/usr/spool/uucppublic/mh
  201.     uucp -d -r $SRC/README $DST/README
  202.     for f in 1 2 3 4 5 6 7 8
  203.     do
  204.         uucp -d -r $SRC/part0$f $DST/part0$f
  205.     done
  206.  
  207.     UUNET subscribers would then call us normally using uucico.  Others
  208.     can use UUNET's 900 number to access UUNET via anonymous uucp.  The
  209.     number is 1-900-468-7727.  The login name is "uucp" and there is no
  210.     password.  The following is a sample Systems/L.sys entry:
  211.     
  212.     uunet Any ACU 19200 19004687727 "" \d\r ogin:-\r-ogin: uucp
  213.     
  214.     The modems on the 900 lines are Telebit WorldBlazers.  These modems
  215.     negotiate V.32bis, V.32, 2400, 1200, and last with (Turbo)PEP tones.
  216.     The cost is 50 cents per minute (as of Jan 93) which will appear on
  217.     your next phone bill.  For more information about the 900 service,
  218.     retrieve uunet!~/help or send e-mail to postmaster@uunet.uu.net
  219.     (uunet!postmaster).  -- Eric Ziegast <ziegast@uunet.uu.net>
  220.  
  221.   via mail:
  222.     Send a note to either mail-server@nluug.nl or
  223.     archive-server@germany.eu.net with a body containing the following:
  224.  
  225.       send mail/mh/mh-6.8.tar.Z
  226.  
  227.     UK users may be able to use ftpmail@doc.ic.ac.uk.  Send a note
  228.     whose body contains "help" to this address. [12.92]
  229.  
  230.     Send a note to ftpmail@decwrl.dec.com whose body contains "help"
  231.     on a line by itself get information on getting ftp sources by
  232.     mail.  Also include the lines "connect" and "dir /pub/mail/ua/mh"
  233.     to see which files are available local to decwrl.  Please do this
  234.     as a last resort only.  [1.93]
  235.  
  236.   via U.S. mail:
  237.     You can send $75 US to the address below.  This covers
  238.     the cost of a 6250 BPI 9-track magtape, handling, and ship-
  239.     ping.  In addition, you'll get a laser-printed hard-copy of
  240.     the entire MH documentation set.  Be sure to include your
  241.     USPS address with your check.  Checks must be drawn on U.S.
  242.     funds and should be made payable to:
  243.  
  244.        Regents of the University of California
  245.  
  246.     The distribution address is:
  247.  
  248.        University of California at Irvine
  249.        Office of Academic Computing
  250.        360 Computer Science
  251.        Irvine, CA  92717  USA
  252.  
  253.        +1 714 856 5153
  254.  
  255.     Sadly, if you just want the hard-copies of the documenta-
  256.     tion, you still have to pay the $75.  The tar image has the
  257.     documentation source (the manual is in roff format, but the
  258.     rest are in TeX format).  Postscript formatted versions of
  259.     the TeX papers are available, as are crude tty-conversions
  260.     of those papers.  [1.93]
  261.  
  262.   
  263. Subject: ! What references exist for MH?
  264. From: Intro-4
  265.  
  266.   Book:
  267.     MH & xmh: E-mail for Users & Programmers.  Second edition. Jerry Peek.
  268.     ISBN 1-56592-027-9.  $29.95.  728 pages.
  269.     O'Reilly & Associates, Inc.
  270.     Book Orders:
  271.       US and Canada: 800-998-9938. Fax: 707-829-0104.
  272.  
  273.     References to "the MH book" in this document refer to the second
  274.     edition of this book (section numbers for the first edition appear
  275.     in parenthesis).
  276.  
  277.     To get a list of non-US distributors, send a note to
  278.     nuts@ora.com or call +1-707-829-0515.
  279.  
  280.     Examples from this book are in:  
  281.     ora.com [198.112.208.25]    pub/examples/nutshell/MHxmh/MHxmh2.tar.Z    54k
  282.     ftp.uu.net [192.48.96.9]    published/oreilly/nutshell/MHxmh/MHxmh2.tar.Z
  283.  
  284.     There is another book that contains a number of examples of
  285.     advanced mail handing using MH as the example message handler.
  286.     It's also quite a good reference on e-mail in general.  [12.92]
  287.  
  288.     The Internet Message.  Marshall T. Rose
  289.     ISBN 0-13-092941-7.  396 pages.
  290.     P T R Prentice Hall
  291.  
  292.   Papers:
  293.     MHN Tutorial by Jerry Sweet
  294.     ftp.ics.uci.edu [128.195.1.1] mh/contrib/multimedia/mhn-tutorial.ps.Z  141k
  295.                               mhn-tutorial.tex.Z 48k
  296.  
  297.   Usenet:
  298.     comp.mail.mh (gatewayed to MH-users)
  299.  
  300.   Mailing lists:
  301.      General questions/discussion: MH-users@ics.uci.edu
  302.      (gatewayed to comp.mail.mh).
  303.      MH developers and maintainers: MH-workers@ics.uci.edu.
  304.      Please use MH-users-request and MH-workers-request to request
  305.      an addition or deletion.
  306.  
  307.   MH-users archives:
  308.     ftp.ics.uci.edu [128.195.1.1]    mh/mh-users/*
  309.  
  310.     The files are in packf(1) format, compressed with compress(1).  To
  311.     get them, use anonymous ftp and set "binary" transfer mode.
  312.                     
  313.       mh-users.86.Z       8549        mh-users.86.scan.Z      771
  314.       mh-users.87.Z      55449        mh-users.87.scan.Z     3679
  315.       mh-users.88.Z     182805        mh-users.88.scan.Z    11339
  316.       mh-users.89.Z      89151        mh-users.89.scan.Z     5522
  317.       mh-users.90.Z     402470        mh-users.90.scan.Z    21551
  318.       mh-users.91.Z     878763        mh-users.91.scan.Z    36992
  319.       mh-users.92.Z    1281585        mh-users.92.scan.Z    44975
  320.       mh-users.93.Z    1544159        mh-users.93.scan.Z    53938
  321.       mh-users.mbox: current archive, uncompressed.
  322.  
  323.     There are directions in the README file.  Basically, you can use
  324.     either "msh" or the individual commands "inc -file" to get the
  325.     messages into a folder, and then "scan", "pick", "show", and so on
  326.     (or your favorite commands in xmh, mh-e, etc.).  --Jerry Peek
  327.     <jerry@ora.com>
  328.  
  329.   This document:
  330.     via anonymous ftp:
  331.       rtfm.mit.edu [18.70.0.209]    /pub/usenet/news.answers/mh-faq
  332.       ftp.uu.net [192.48.96.9]        /archive/usenet/news.answers/mh-faq.Z
  333.       ftp.cs.ruu.nl [131.211.80.17]    /pub/NEWS.ANSWERS/mh-faq
  334.  
  335.     via mail:
  336.       Each of the following addresses is following by commands which
  337.       should be included as the body of the message.
  338.       
  339.       mail-server@rtfm.mit.edu
  340.         send usenet/comp.mail.mh/mh-faq
  341.  
  342.       mail-server@cs.ruu.nl
  343.     send pub/NEWS.ANSWERS/mh-faq
  344.     
  345.   
  346. Subject: ! What other MH software is available?
  347. From: Intro-5
  348.  
  349.   vmh 
  350.     Vmh is designed for people using the bulletin-board features
  351.     of MH, where mail is stored in packed (single-file) folders.  As
  352.     a result, use of this program cannot be mixed with the use of
  353.     normal MH commands.  Vmh is a part of the official MH
  354.     distribution.  --James Perkins <jamesp@sp-eug.com> [1.93]
  355.  
  356.   xmh
  357.     Xmh is a X11 mouse-based MH browsing tool.  It is very powerful
  358.     and feature-filled and thus comes with a moderate learning
  359.     curve.  Its dependence on the X11 environment makes it very
  360.     reconfigurable, but only by people well-versed in X applications
  361.     programming.  Its message reply built-in-editor interface is not
  362.     always popular among those used to having MH bring up the editor
  363.     of their choice.  --James Perkins <jamesp@sp-eug.com>
  364.  
  365.     xmh is part of the standard X Window System distribution from
  366.     MIT.  Ultrix also ships dxmail which is similar.
  367.  
  368.     cs.utk.edu [128.169.201.1]        pub/xmh.shar.Z        162k
  369.  
  370.     Here's a version of xmh that includes MIME.  --Harald Tveit
  371.     Alvestrand <hta@boheme.er.sintef.no> [1.93]
  372.  
  373.     aun.uninett.no [129.241.1.99]    pub/mail/mixmh/mixmh-0.3.tar.Z    232k
  374.  
  375.   olmh
  376.     Sun's Open Windows 3 comes with a demo for OLIT (Open Look
  377.     Interface Toolkit, the Open Look wrapper to Xt) named olmh that
  378.     does handle 3rd and subsequent levels of nesting of folders.
  379.     --Dale Carstensen <dlc@c3file.c3.lanl.gov>
  380.  
  381.     Obtain the Open Windows 3 distribution CD/ROM from Sun (SPARC
  382.     only).  To do this, call 1-800-USA-4SUN and send tone "2" for
  383.     telemarketing after it answers.  The 4.1.2 CD/ROM may also have
  384.     Open Windows 3.  The list price for the 4.1.2 CD/ROM is $200.
  385.  
  386.   mh-e
  387.     Mh-e is the GNU Emacs front end for MH.  It offers all the
  388.     functionality of MH, the visual orientation and simplicity of
  389.     use of xmh, and full integration with Emacs, including thorough
  390.     configurability.  The command set is similar to that of rmail
  391.     (the Emacs front end for BSD mail) and BSD mail itself.  On-line
  392.     help is available.
  393.  
  394.     Mh-e allows one to read and process mail very quickly: commands
  395.     are single characters and completion and defaults are available
  396.     for file and folder names.  During a reply, the original message
  397.     is displayed simultaneously in another window for easy reference
  398.     where a mh-e command can quickly incorporate and format this
  399.     text into your reply.
  400.  
  401.     With mh-e you compose outgoing messages in Emacs.  This is a big
  402.     plus for Emacs users, but it has been known for non-Emacs users
  403.     to be able use mh-e after only learning the most basic cursor
  404.     motion commands.  Mh-e is easily configured via the Emacs
  405.     edit-options menu, and people familiar with Emacs Lisp will be
  406.     able to further reconfigure mh-e beyond recognition.
  407.  
  408.     Mh-e is part of the standard GNU Emacs distribution.  Note that
  409.     mh-e got much faster in Emacs 18.56.  --Stephen Gildea
  410.     <gildea@x.org> [5.94]
  411.  
  412.     ftp.x.org [198.112.44.100]    misc/mh-e/mh-e-4.0.tar.Z    66k
  413.  
  414.   vmail 
  415.     Vmail is a curses-based, vi-like message browser which calls on
  416.     MH programs to manipulate mail.  It can be used on almost any
  417.     terminal.  It organizes mail folders into index pages, from
  418.     which a message can be selected to be shown, replied-to,
  419.     forwarded, refiled, deleted, and so on.  The vi-like interface
  420.     and command keystrokes are comfortable to less-experienced UNIX
  421.     users, and it is a small, compact program, unlike the mh-e Emacs
  422.     package.
  423.  
  424.     This version of vmail has been bugfixed and enhanced from the
  425.     original vmail published on the net in 1987 by J. Zobel.
  426.     --James Perkins <jamesp@sp-eug.com> [1.93]
  427.  
  428.     ftp.uu.net [192.48.96.9]   comp.sources.unix/volume12/vmail/part0*.Z    46k
  429.     ftp.ucs.ubc.ca [137.82.27.62]    pub/mh/vmail.[1-3]of3.Z            58k
  430.     Or mail requests to James Perkins <jamesp@sp-eug.com>.  [5.94]
  431.  
  432.   vmailtool
  433.     If you have a Sun workstation, vmailtool may be for you.  It is a
  434.     button gadget panel for the above-mentioned vmail program.  It
  435.     brings vmail into the windows era where people no longer need to
  436.     memorize specific command keystrokes.  It also provides a mail
  437.     icon with the flag that pops up when new mail arrives.  Again,
  438.     this is a compact, simple tool, unlike the powerful xmh program.
  439.     Still, it's a welcome alternative for many people who are running
  440.     SunView or OpenWindows.  --James Perkins <jamesp@sp-eug.com> [1.93]
  441.  
  442.     ftp.ucs.ubc.ca [137.82.27.62]    pub/mh/vmailtool.Z    18k
  443.     or mail requests to James Perkins <jamesp@sp-eug.com>. [5.94]
  444.  
  445.   plum
  446.     Plum is a highly configurable and extensible screen-oriented front-end
  447.     for processing MH mail on ASCII terminals.  Unlike mh-e, the extension
  448.     language used in plum is perl, not LISP.  Plum offers many of the
  449.     advantages of xmh, but lacks several of xmh's disadvantages.  The
  450.     look&feel derives more from vi than from emacs.  Key bindings and
  451.     functions may be changed on the fly to suit the user's preference.  It
  452.     offers filename and word completion on folder, variables, and command
  453.     names.
  454.  
  455.     Until it is included in the standard distribution (under miscellany),
  456.     you can find a copy on:
  457.  
  458.     convex.com [130.168.1.1]    pub/perl/scripts/plum*        55k
  459.     or mail requests to Tom Christiansen <tchrist@convex.com>. [5.94]
  460.  
  461.   mmh     
  462.     MMH, My Mail Handler, is a Motif interface for reading and sending mail.
  463.     It uses the MH commands to actually handle sending a receiving messages.
  464.     It does not support all the capabilities of MH, but offers a large
  465.     enough subset to handle the majority of users.  Its intended user is
  466.     someone between "bumbling e-mail novice" and "sophisticated user".
  467.     Hooks are provided to allow the user to customize and add new commands.
  468.  
  469.     ftp.eos.ncsu.edu [152.1.9.25]    pub/bill/bill.tar.Z    120k
  470.  
  471.   metamail
  472.     Metamail is a package that can be used to convert virtually ANY
  473.     mail-reading program on UNIX into a multimedia mail-reading program.
  474.     It is an extremely generic implementation of MIME (Multipurpose
  475.     Internet Mail Extensions), the proposed standard for multimedia mail
  476.     formats on the Internet.  The implementation is extremely flexible and
  477.     extensible, using a "mailcap" file mechanism for adding support for new
  478.     data formats when sent through the mail.  At a heterogeneous site where
  479.     many mail readers are in use, the mailcap mechanism can be used to
  480.     extend them all to support new types of multimedia mail by a single
  481.     addition to a mailcap file.
  482.  
  483.     The metamail distribution comes complete with a small patch for
  484.     each of over a dozen popular mail reading programs, including
  485.     Berkeley mail, mh, Elm, Xmh, Xmail, Mailtool, Emacs Rmail, Emacs
  486.     VM, Andrew, and others.  Note that the MH patches are now integrated
  487.     into MH 6.8 --Nathaniel Borenstein <nsb@thumper.bellcore.com>
  488.  
  489.     thumper.bellcore.com [128.96.41.1]    pub/nsb/mm2.7.tar.Z
  490.  
  491.   X.500 lookups  
  492.     If a name is enclosed in square brackets, when entering a destination
  493.     address, ie:
  494.  
  495.     To: [Greg Wickham,CSIRO]
  496.  
  497.     a search will be made in the X.500 Directory for the individual's entry.
  498.     If an address exists then it will be extracted and placed into the
  499.     headers.  Mail requests for the software to the author.  --Andrew
  500.     Waugh <ajw@mel.dit.csiro.au>
  501.  
  502.   QueueMH
  503.     QuemeMH is an e-mail based service request and tracking system
  504.     based on the Rand Mail Handler. --Barbara Dyker
  505.     <dyker@teal.csn.org>  [1.93]
  506.  
  507.     ftp.cs.colorado.edu [128.138.243.151]    pub/cs/sysadmin/utilities/
  508.                         queuemh.tar.Z    98k
  509.  
  510.   QMH:
  511.  
  512.     Qmh is an MH-based group mail management tool. Written entirely in
  513.     perl, Qmh combines the best aspects of MH with group mail
  514.     heuristics and delivers a sensible package for all levels of UNIX
  515.     users. A limitless number of individual queues and associated
  516.     groups of permitted users can be established.
  517.  
  518.     Specific functionality includes the following modes of operation;
  519.     checking header dates and sending reminder/deadline mail, editing
  520.     existing messages, help screens, creating new messages from
  521.     scratch or exiting messages, resolving messages, scanning queue
  522.     folders, and annotating with status both by editing and sending
  523.     mail.
  524.  
  525.     Qmh is a single generic program in and of itself from which all
  526.     modes of operation are invoked. Additionally, each separate queue
  527.     may be accessed via a link to the single program. All system
  528.     configuration is maintained in a single file that is read upon
  529.     each invocation of Qmh.  Formatting and template files are
  530.     provided in the system library, although individual users can
  531.     override the defaults simply by creating equivalent files in their
  532.     own MH mail directory.
  533.  
  534.     Qmh provides a powerful database-like functionality by allowing
  535.     limitless per-queue X-Qmh-<$value> headers to be included in
  536.     messages.  These "fields" then form the context of the queue
  537.     messages and provide a user-defined, but yet structured
  538.     environment for queries, reporting, and random information.
  539.  
  540.     Qmh is designed to provide a complete solution for SA groups, help
  541.     desks, support organizations, or wherever two or more individuals
  542.     are trying to manage multiple mail requests.
  543.  
  544.     Qmh is also compatible with versions of xmh that provide
  545.     user-level command buttons. Provided in the Qmh package is a
  546.     ~/.Xdefaults template file that's setup to harness the power of
  547.     Qmh.
  548.  
  549.     For more info, write to <info@rootgroup.com>.  [3.93]
  550.  
  551.   MacMH and PC/MH:
  552.     These were available only for non-commercial degree-granting
  553.     institutions from:
  554.  
  555.     Networking & Communication Systems
  556.     115 Pine Hall
  557.     Stanford University
  558.     Stanford, CA 94305-4122
  559.     Phone: +1 415-723-3909
  560.  
  561.     See also:
  562.       netix.com [192.88.8.100]    pub/pc-mh-info/*          [5.94]
  563.  
  564.     --Jerry Peek <jerry@ora.com>
  565.  
  566.     The authorized distributor for PC/MH is:
  567.  
  568.     NEI, Inc.
  569.     210 Technology Drive, STE 210
  570.     Irvine, Ca 92718
  571.     Phone: +1 714-753-8588
  572.     FAX:   +1 714-753-8593
  573.     Internet: info@netix.com
  574.  
  575.     --Shannon Yeh <yeh@orion.oac.uci.edu>
  576.  
  577.     In addition, you might try Wollongong, to see if they have something you
  578.     can get.
  579.  
  580.   
  581. Subject: How can I print a MH manual?
  582. From: Intro-6
  583.  
  584.   To order a copy by mail, see the section on how to get MH by mail in
  585.   "Where can I get MH?"  Also, check "What references exist for MH?"
  586.  
  587.   To print your own copy, first obtain the MH sources ("Where can I
  588.   get MH?") if you don't already have it.  Go into the "doc" directory
  589.   and run "make guide" to create the administrators guide and "make
  590.   manual" to create a user's manual which includes tutorials and man
  591.   pages.  If the doc directory is empty or is missing the Makefile,
  592.   you'll have to run "mhconfig MH" in the conf directory so that the
  593.   documentation with correct local information is created.
  594.  
  595.   For properly formatting the documentation (at least the manual
  596.   pages) you might even have to install MH, because a reference to a
  597.   tmac.h file in the MH lib directory is made in the manual pages.
  598.  
  599.   You can also ftp the ASCII or postscript versions:
  600.  
  601.     ftp.ics.uci.edu [128.195.1.1]    mh/doc/tutorial.ps.Z        65k
  602.                     mh/doc/ADMIN.ps.Z        56k
  603.                     mh/doc/MH.ps.Z (man pages)    261k
  604.     ftp.uu.net [192.48.96.9]        same files, dir networking/mail/mh/doc
  605.  
  606.   Or, you can send a note to mail-server@nluug.nl with a body containing the
  607.   following:
  608.  
  609.     send mail/mh/papers-ps/tutorial.ps.Z
  610.  
  611.   --Bill Wohler <wohler@newt.com> and Jos Vos <jos@bull.nl> [1.93]  
  612.  
  613.   
  614. Subject: How should I report bugs?
  615. From: Intro-7
  616.  
  617.   Mail them to Bug-MH@ics.uci.edu and be sure to include the output of
  618.   the -help option as well as what hardware and operating system you
  619.   are using.
  620.  
  621.   
  622. Subject: How can I convert from my mailer to MH?
  623. From: Intro-8
  624.  
  625.   If you use one of a mail agent like 'mail', 'mailx', 'elm' or
  626.   'mush', converting to MH is easy.  When you run the 'inc' command,
  627.   it reads all new messages from the system mailbox into your 'inbox'
  628.   folder.  Those mail agents also have separate files or "folders"
  629.   that hold messages in the same format as the system mailbox.  You
  630.   can read them with the 'inc -file' command.  For example, to read
  631.   the messages from your 'mbox' mail file into your MH 'inbox' folder,
  632.   you'd type:
  633.  
  634.     % cd
  635.     % cp mbox mbox.backup
  636.     % inc -file mbox
  637.  
  638.   If you see the usual "Incorporating new mail into inbox..." message
  639.   and a scan listing, the messages probably were converted.  Read some
  640.   or all of them (with the 'show' command) and be sure.  The 'inc'
  641.   won't remove your mbox unless you use '-truncate'. 
  642.  
  643.   Section D.4 (C.4) of the MH book lists two scripts to convert mail
  644.   files to MH folders: babyl2mh to convert from rmail's babyl format;
  645.   vmsmail2mh to convert from VMS's mail (see "What references exist
  646.   for MH" to see where the book's examples can be ftped from).
  647.   --Jerry Peek <jerry@ora.com>
  648.  
  649.   Vivek Khera <khera@cs.duke.edu> rewrote this in Perl since the
  650.   original script doesn't work for some people.  See appendix
  651.   "babyl2mh.pl." [1.93]
  652.  
  653.   Juergen Nickelsen <nickel@cs.tu-berlin.de> provides yet another
  654.   short script.  He says,
  655.  
  656.   "You can remove the second to last second line ("> $input"), so
  657.   that the script doesn't zero out your RMAIL file.
  658.  
  659.   "Another alternative is to replace this line with "inc -file $tmpmbox
  660.   $folder && > $input", so that the RMAIL is only zeroed if inc
  661.   successfully incorporated the mail.  Finally one could add a switch
  662.   -z, so that the RMAIL file is only zeroed if the switch is given.
  663.   See appendix "inco." [1.93]
  664.  
  665.   Use the following to convert a Babyl format file to UNIX mail
  666.   format. [5.94]
  667.  inf.informatik.uni-stuttgart.de [129.69.211.2]    pub/gnu/emacs_extras/
  668.                         rmailtovm.el.Z        6k
  669.  
  670.   See also MH book appendix D (appendix C).
  671.  
  672.   
  673. Subject: What machines does MH run on?
  674. From: Building MH-10
  675.  
  676.   If you have a computer running UNIX, you can probably run MH.
  677.   --Jerry Peek <jerry@ora.com>
  678.  
  679.   
  680. Subject: How do I build MH?
  681. From: Building MH-11
  682.  
  683.   By carefully reading the READ-ME in the root of the source
  684.   hierarchy, one should not have any trouble building MH.
  685.  
  686.   
  687. Subject: What options should I use?
  688. From: Building MH-12
  689.  
  690.   BERK: Do NOT include the BERK option (in versions 6.7 or later)!
  691.   BERK breaks the mh-format functions that take apart address lines,
  692.   for example mbox, from, and friendly.  This would really put a crimp
  693.   on my replcomps file.
  694.  
  695.   LOCKF: if you have NFS, you need to lock your mailbox with lockf()
  696.   so the lock will be honored by all machines on the local network.
  697.   If you have the lockf() system call, include LOCKF.
  698.  
  699.   JQ Johnson <jqj@duff.uoregon.edu> makes the point that one should
  700.   use this option carefully since it requires a robust lockf() call.
  701.   For example, this option caused serious problems on his SunOS 4.1.1.
  702.   He suggested using LOK_BELL instead, and adding "lockstyle: 1" to
  703.   mtstailor.
  704.  
  705.   ATZ: makes your timezones print like "EST" instead of "-0500".  Much
  706.   prettier.
  707.  
  708.   --Stephen Gildea <gildea@x.org>
  709.  
  710.   However, Tony Landells <ahl@technix.oz.au> replies: "Yes; very
  711.   pretty.  How unfortunate that timezone names are so ambiguous, so
  712.   that EST can be interpreted, at a minimum, as (American) Eastern
  713.   Standard Time, (Australian) Eastern Standard Time, or (Australian)
  714.   Eastern Summer Time (and yes, I think it's dumb having the same
  715.   acronym for both normal and Summer time, but that's a different
  716.   problem).  While the numeric timezones may not look as nice, they
  717.   are, at least, reasonably unambiguous.  I would urge anyone who ever
  718.   intends/hopes/expects to use e-mail outside the U.S. to NOT use ATZ
  719.   (sorry Stephen)."
  720.  
  721.   At any rate, the conf/examples directory has been updated and
  722.   contains many examples show you which options are required on your
  723.   platform and which are optional (in the upcoming version MH 6.8).  At
  724.   any rate, it is recommended that you examine the options in the
  725.   example configuration files, and read about them in READ-ME.
  726.  
  727.   RPATHS: a side-effect is that slocal writes messages to your system
  728.   maildrop without the MMDF C-A's that separate messages, so your BSD
  729.   tools like from work. [12.92]
  730.  
  731.   
  732. Subject: ! Fixing "post: problem initializing server; [BHST] no servers available"
  733. From: Building MH-13
  734.  
  735.   The error message itself is essentially correct.  However, what this
  736.   really means is: MH's post cannot connect to a running sendmail over
  737.   an SMTP port (MH configured with SMTP and SENDMTS).
  738.  
  739.   The potential problems:
  740.  
  741.   1. Your local sendmail daemon is dying or not running for some
  742.   reason.
  743.  
  744.   2. You use BIND and your local nameserver is not responding.
  745.  
  746.   3. Your mtstailor has its "servers:" pointing to a non-existant
  747.   machine or a machine which is a) not reachable or b) not running the
  748.   sendmail daemon.  --Peter Marvit <marvit@hplabs.hpl.hp.com>
  749.  
  750.   4. The hostname localhost [127.0.0.1] is missing from /etc/hosts.  --Bdale
  751.   Garbee <bdale@col.hp.com> [5.94]
  752.   
  753. Subject: Where can I get POP3?
  754. From: Building MH-14
  755.  
  756.   MH6.7 (and earlier versions too) include a server for version 3 of POP.
  757.  
  758.   
  759. Subject: What do I do if scan shows the wrong date?
  760. From: Building MH-15
  761.  
  762.   Upgrade to MH 6.8. [1.93]
  763.  
  764.   
  765. Subject: Why slocal writes messages to system maildrop that from(1) can't read.
  766. From: Building MH-16
  767.  
  768.   Upgrade to MH 6.8 and set the RPATHS option.  Better yet, use a more
  769.   MH-like command instead: "scan -file $MAIL".  [1.93]
  770.  
  771.  
  772. Subject: Why does repl add a "Re:" to a message that already has one?
  773. From: Building MH-17
  774.  
  775.   I carefully reconfigured and rebuilt MH from scratch and the problem
  776.   went away.  --Larry McVoy <lm@slovax.Eng.Sun.COM>
  777.  
  778.   
  779. Subject: Does MH support IMAP2 (RFC 1064)?
  780. From: Building MH-18
  781.  
  782.   No.  MH only supports retrieving mail using POP3.  POP3 is on the
  783.   "standards track"--it is now an elective Internet Draft Standard
  784.   (see RFC1280 for more details).  At this point, IMAP[23] are
  785.   "experimental, limited use" protocols; it is unlikely that MH will
  786.   support them.  --John Romine <jromine@ics.uci.edu>
  787.  
  788.   
  789. Subject: Why does "mailgroup mail" only affect inc but not slocal?
  790. From: Building MH-19
  791.  
  792.   If "mailgroup" is set, inc is made set-group-id to this group name.
  793.   Some SYS5 systems want this to be set to "mail".  Set this if
  794.   /usr/spool/mail (or /usr/mail) is not world-writeable.  These
  795.   changes were contributed by Peter Marvit, and "inc" is very careful
  796.   about its use of the set-gid privilege.
  797.  
  798.   Note that slocal doesn't know how to deal with this, and will not
  799.   work under these systems; just making it set-group-id will open a
  800.   security hole (since it doesn't know when to drop the set-gid
  801.   privileges).  If you're using "mailgroup", you should remove slocal
  802.   (and its man page) from your system. --John Romine
  803.   <jromine@ics.uci.edu> [1.93]
  804.  
  805.   Alternatives to slocal include deliver, procmail, and mailagent.
  806.   Archie can help you find where they are kept.
  807.  
  808.   
  809. Subject: Where can I read about slocal and the format of the .maildelivery file?
  810. From: Using MH-30
  811.  
  812.   See the slocal man page.
  813.  
  814.   Here is brief example of a .maildelivery file that stores messages
  815.   to babble in a folder and the system mailbox, stores mh-users in a
  816.   folder but not the system mailbox, and puts the rest in the system
  817.   mailbox.
  818.  
  819.     to  mh-users  | A "/usr/local/lib/mh/rcvstore -create +lists/mh-users"
  820.     cc  mh-users  | A "/usr/local/lib/mh/rcvstore -create +lists/mh-users"
  821.     to  babble    | R "/usr/local/lib/mh/rcvstore -create +lists/babble"
  822.     cc  babble    | R "/usr/local/lib/mh/rcvstore -create +lists/babble"
  823.     default -     > ? /usr/spool/mail/wohler
  824.  
  825.   Your .forward file may look like (quotes necessary):
  826.  
  827.     "| /usr/local/lib/mh/slocal -user your_login"
  828.  
  829.   In some implentations, the "-user your_login" is not needed.  If
  830.   not, manually running slocal with the flag will produce an error.
  831.  
  832.   See also chapter 11 in the MH book.
  833.  
  834.   Alternatives to slocal include deliver, procmail, and mailagent.
  835.   Archie can help you find where they are kept.
  836.  
  837.   
  838. Subject: How do I include messages in repl with or without ">"?
  839. From: Using MH-31
  840.     
  841.   When making a reply, specify a filter file on the command line:
  842.  
  843.     repl -filter repl.format
  844.  
  845.   This filter file must be in your MH mail directory (usually "Mail",
  846.   in your home directory).  Here are a couple of example repl.format
  847.   files:
  848.  
  849.     overflowtext="",overflowoffset=0
  850.     message-id:nocomponent,formatfield=\
  851.     "In message %{text}you write:"
  852.     body:component=">",overflowtext=">",overflowoffset=0
  853.  
  854.           or
  855.  
  856.     overflowtext="",overflowoffset=0
  857.     date:component="Your message dated",formatfield=\
  858.     "%<(nodate{text})%{text}%|%(pretty{text})%>"
  859.     body:component=">",overflowtext=">",overflowoffset=0
  860.  
  861.   Setting overflowoffset to 0 keeps MH from doing anything to
  862.   extra-long lines in the headers.  In the body, however, this
  863.   behavior is overridden so that long lines are automatically broken
  864.   and a ">" is inserted before every line.  You could put almost
  865.   whatever you want between those quotes, although the "standard" ">"
  866.   makes it easier to read notes that have been included several times.
  867.   The examples differ with the descriptive text that is inserted
  868.   before the included body.
  869.  
  870.   It is suggested not to use the "prompter" editor in this case, since
  871.   it is likely that you'll not want to use all of the included
  872.   message.  Indeed, it is proper etiquette to edit out all unnecessary
  873.   include verbiage so readers don't have to wade through the morass to
  874.   read your pearls of wisdom.
  875.  
  876.   WARNING: the '>' appears on the first line ONLY in versions prior
  877.   to 6.7.2.  Upgrade to MH 6.8.
  878.     
  879.   --Alan Thew <qq11@liv.ac.uk>, Mike Schwager <schwager@cs.uiuc.edu>,
  880.   James T Perkins <jamesp@sp-eug.com> [1.93]
  881.  
  882.   See also MH book sections 6.7.4, 6.7.5, 9.4.1 (9.3.1).
  883.  
  884.   
  885. Subject: How can I eliminate duplicate copies of letters to myself?
  886. From: Using MH-32
  887.  
  888.   Add these two lines to your MH profile file:
  889.  
  890.     Alternate-Mailboxes: user@host1, user@host2, ...
  891.         repl: -nocc me
  892.  
  893.   To get one copy, you can either:
  894.  
  895.   - Take out the "-nocc me"... then you'll get exactly one copy of
  896.     your replies (assuming all your addresses are listed in
  897.     Alternate-Mailboxes), or
  898.  
  899.   - Add an "Fcc: foldername" to the headers of messages you send.
  900.     That will drop a copy of the message in the folder "foldername".
  901.     You can do this for *all* MH messages you send (not just with
  902.     repl) by putting an "Fcc:" entry in your personal copy of the
  903.     files "components", "replcomps", and "forwcomps" in your MH
  904.     directory.  (If you make a "distcomps" file, it needs
  905.     "Resent-Fcc:".)  For more info, see the man pages comp(1),
  906.     repl(1), forw(1), dist(1) and mh-mail(5). --Jerry Peek <jerry@ora.com>
  907.  
  908.   The Alternate-Mailboxes also tells scan which messages are really
  909.   from you so that it can place the recipient in the scan line instead
  910.   of the sender.  --Bill Wohler <wohler@newt.com>
  911.  
  912.   See also MH book sections 6.7.2, 8.6.
  913.  
  914.   This is also a convenient way to AVOID automatically cc-ing a
  915.   mailing list when replying to a person who sent the message to the
  916.   mailing-list, by listing the name of that mailing list in your
  917.   alternate mailboxes.  --Alec Wolman <wolman@crl.dec.com>
  918.  
  919.   
  920. Subject: How would one go about reading Usenet with MH?
  921. From: Using MH-33
  922.  
  923.   Although news readers are better, if one really wants to use
  924.   MH, bbc will do the job.  For example, "bbc comp.mail.mh" reads this
  925.   newsgroup.  To enable bbc, you have to specify "bboards" when you
  926.   build MH.  --Stephen Gildea <gildea@x.org>
  927.  
  928.   You can save articles in the news readers for later perusal with MH.
  929.  
  930.   First, create a symbolic link from your mail directory (ie. usenet) to
  931.   your news directory (ie. "ln -s ~/News ~/Mail/usenet").  You can then
  932.   treat your news directory as a mail folder.  Thus, to select a news
  933.   group, use "folder +usenet/comp/mail/mh".
  934.  
  935.   To set the default save location correctly in rn, use:
  936.  
  937.     rn -M -/
  938.  
  939.   or in your nn presentation sequence:
  940.  
  941.     news.announce.        +$F/$N
  942.     comp.mail.mh        +
  943.     .
  944.     .
  945.  
  946.   See also MH book section 8.7.
  947.  
  948.   
  949. Subject: Can I append MH messages (ie. +inbox/1) to a UNIX mailbox format file?
  950. From: Using MH-34
  951.  
  952.   Yes, see support/general/packmbox.sh in the distribution.  [1.93]
  953.  
  954.   
  955. Subject: ! How can I include my signature?
  956. From: Using MH-35
  957.  
  958.   There are several ways.
  959.  
  960.   1) The MH way.
  961.  
  962.   1a) In your Mail directory, create files that
  963.       include your signature into the format of the message.
  964.  
  965.      ~/Mail/components:
  966.     To: 
  967.     cc: 
  968.     Subject: 
  969.     --------
  970.  
  971.     --
  972.     Eric Ziegast        ziegast@uunet.uu.net
  973.     UUNET Technologies    uunet!ziegast
  974.  
  975.      ~/Mail/replcomps
  976.     body:component="> ",compwidth=2
  977.     :--
  978.     :Eric Ziegast          ziegast@uunet.uu.net
  979.     :UUNET Technologies    uunet!ziegast
  980.  
  981.      To use the replcomps file, add the following to your ~/.mh_profile:
  982.  
  983.     repl: -filter replfmt
  984.  
  985.      When comp is used, your signature is already there along with my
  986.      headers.  When repl is used, the mhl program takes the body of
  987.      the letter you're replying to, prepends '> ' to each line and
  988.      then adds your signature at the end (available after version 6.7).
  989.  
  990.   1b) Create an "editor" which can be called from whatnow to add the
  991.      signature when desired or create a frontend to post (use the
  992.      .mh_profile line "postproc: postproc" to call it) that always
  993.      appends the .signature file before calling post to mail the
  994.      message.  David J. Fiander <david@golem.uucp>, David A.
  995.      Truesdell <truesdel@nas.nasa.gov> and Tom Wilmore
  996.      <sastjw@unx.sas.com> have sample scripts to do these.
  997.  
  998.   1c) Section 13.13 of the MH book lists mysend, a sendproc script to
  999.     process a message after "What now? send" (see "What references
  1000.     exist for MH" to see where the book's examples can be ftped from).
  1001.     --Jerry Peek <jerry@ora.com> [9.92]
  1002.  
  1003.   2) Using your editor.  If you use vi, you can use something like:
  1004.  
  1005.       map S :r ~/.signature
  1006.  
  1007.      to load your signature out of .signature every time you
  1008.      hit 'S'.
  1009.  
  1010.   3) Use your windowing system.  xterm, for example, can provide key
  1011.      and button mappings for the utterly lazy.
  1012.  
  1013.   4) If you use Emacs with mh-e:
  1014.   
  1015.   4a) C-c C-s will append the signature.
  1016.   
  1017.   4b) Add the following to your .emacs file:
  1018.  
  1019.     (add-hook 'mh-compose-letter-function 
  1020.         (function 
  1021.          (lambda(a b c)
  1022.            (save-excursion
  1023.          (goto-char (point-max))
  1024.          (beginning-of-line)
  1025.          (insert-file (expand-file-name mh-signature-file-name))))))
  1026.  
  1027.       This hook is called after the draft buffer has been initalized,
  1028.       but before you have a chance to type anything.  --Andre
  1029.       Srinivasan <andre@neuronet.pitt.edu> [5.94]
  1030.  
  1031.   --Eric W. Ziegast <ziegast@uunet.uu.net> & Hardy Mayer
  1032.   <hardy@golem.ps.uci.edu> except where noted.
  1033.  
  1034.   Tired of the same old signature?  Want different signatures for
  1035.   different newsgroups?  Here's a program to help you out.
  1036.  
  1037.   The way it works is to have .signature be a named pipe, so if you
  1038.   don't have named pipes, just say 'n'.
  1039.  
  1040.   The sigrand program then feeds stuff down the pipe everytime someone
  1041.   wants to read it.  That way it works for more than just news, but
  1042.   for anything that wants to read your .signature, like a mailer.
  1043.  
  1044.   You have your choice of three kinds of signatures:
  1045.  
  1046.       1) random (short) fortune from "fortune -s"; you get these if
  1047.      you don't have a global sig file.
  1048.       2) random fortune from ~/News/SIGNATURES [global sig file]
  1049.       3) random fortune form ~/News/(newsgroup)/SIGNATURES [local sig files]
  1050.  
  1051.   Ask Tom Christiansen <tchrist@convex.com> for more details.
  1052.  
  1053.   
  1054. Subject: What to do with "Problems with edit - draft removed".
  1055. From: Using MH-36
  1056.  
  1057.   If your users are using an AT&T version of "vi", it's exiting with
  1058.   non-zero status (supposedly a count of the "errors" during the edit).
  1059.   Move "vi" to "broken_vi" and put it its place:
  1060.  
  1061.     #! /bin/sh
  1062.     /usr/ucb/broken_vi $*
  1063.     exit 0
  1064.  
  1065.   Alternatively, compile MH with the ATTVIBUG option.
  1066.  
  1067.   Then complain to your vendor that "vi" is broken, and they should
  1068.   fix it.  --John Romine <jromine@ics.uci.edu>
  1069.  
  1070.   
  1071. Subject: How do I call my editor with arguments?
  1072. From: Using MH-37
  1073.  
  1074.   Set your editor (in .mh_profile) to the following shellscript:
  1075.  
  1076.     #/bin/sh
  1077.     <youreditor> <yourargs> $*
  1078.     exit 0
  1079.  
  1080.   --John Romine <jromine@ics.uci.edu>
  1081.  
  1082.   You might find it useful to make <youreditor> $EDITOR, or to use
  1083.   different arguments depending on your EDITOR environment variable.
  1084.   --Ray Nickson <Ray.Nickson@comp.vuw.ac.nz>
  1085.  
  1086.   
  1087. Subject: How do I debug my .maildelivery file?
  1088. From: Using MH-38
  1089.  
  1090.   Use as many of the following as necessary.
  1091.  
  1092.   Put a message into a file and call slocal directly on it.
  1093.  
  1094.     /usr/local/lib/mh/slocal -user $USER -verbose -debug < test-msg 
  1095.  
  1096.   Modify your .forward to look like:
  1097.  
  1098.     "|/bin/sh -c 'exec >> /tmp/out 2>&1; /usr/local/lib/mh/slocal 
  1099.     -user $USER -verbose -debug'"
  1100.  
  1101.   Or modify a rule in .maildelivery to look like this:
  1102.  
  1103.     to foo | R "set -xv; exec >/tmp/out 2>&1;
  1104.     /usr/local/lib/mh/rcvstore +foo"
  1105.  
  1106.   The previous examples are broken up for readability; the text must
  1107.   appear on one line.
  1108.  
  1109.   See also MH book section 11.11. [3.93]
  1110.  
  1111.   
  1112. Subject: How can I digestify the messages in a folder for mail to another user?
  1113. From: Using MH-39
  1114.  
  1115.   How about:
  1116.  
  1117.     forw [-digest tmp] [-form forwcomps] [-filter mhl.digest]
  1118.          messages +folder
  1119.  
  1120.   These messages can be un-digestified :-) by the MH burst(1) program.
  1121.   --Jerry Peek <jerry@ora.com> and Bill Wohler <wohler@newt.com>
  1122.  
  1123.   See also MH book sections 6.8, 7.9.
  1124.  
  1125.   
  1126. Subject: Can I run my message through a program (ie. ispell) before sending?  
  1127. From: Using MH-40
  1128.  
  1129.   It's pretty simple.  If your speller is called myspell, use:
  1130.  
  1131.     What now? edit myspell
  1132.  
  1133.   MH will actually execute:
  1134.  
  1135.     myspell /your-mail-draft-directory/draftfile
  1136.  
  1137.   and give the entire draft message to your speller.  The header will
  1138.   probably be "misspelled," of course, though you might be able to
  1139.   tell the speller to ignore it--or you could hack up a little shell
  1140.   script to run the speller on just the message body, then tack the
  1141.   corrected body back onto the header before sending.
  1142.  
  1143.   You can automate this some more.  For example, if you want your
  1144.   speller to run after your first edit with "prompter" and also after
  1145.   you leave the "vi" editor, add these lines to your MH profile:
  1146.  
  1147.       prompter-next: myspell
  1148.       vi-next: myspell
  1149.  
  1150.   Then, at the "What now?" prompt:
  1151.  
  1152.       What now? e
  1153.  
  1154.   your speller will run.  For more info, see the mh-profile(5) man
  1155.   page or section 6.2.1 of the MH book. --Jerry Peek <jerry@ora.com>
  1156.  
  1157.   
  1158. Subject: Can I append MH messages to a GNU Emacs rmail BABYL-format file?
  1159. From: Using MH-41
  1160.       
  1161.   To convert your MH folders to BABYL folders, first run the following script
  1162.   on your Mail directory.
  1163.  
  1164.   #!/bin/sh
  1165.  
  1166.   for f in Mail/*; do
  1167.     if [ -d $f ]; then
  1168.         touch msgbox
  1169.         folder=`basename $f`
  1170.         echo -n packing $folder ...
  1171.         packf +$folder
  1172.         echo done
  1173.         mv msgbox Mail-rmail/$folder
  1174.     fi
  1175.   done
  1176.  
  1177.   This assumes you don't have nested folders.  Your rmail folders will be
  1178.   left in $HOME/Mail-rmail in MMDF format which rmail can read.  Then run
  1179.   rmail-input for each folder, which converts each folder into BABYL format.
  1180.  
  1181.   Be sure not to append any messages before they are converted from MMDF
  1182.   to BABYL, since there may be really strange results.
  1183.  
  1184.   
  1185. Subject: Is there documentation for mh-e?
  1186. From: Using MH-42
  1187.  
  1188.   Yes, sort of.  Run "C-h m" (describe-mode) in both scan and
  1189.   letter modes to see which commands and variables are available.
  1190.   Browsing the code is also helpful.
  1191.  
  1192.   
  1193. Subject: How can I change my return address?
  1194. From: Using MH-43
  1195.  
  1196.   If you find that your mailer creates a From header that others have
  1197.   trouble replying to, you can add a Reply-To header to override the
  1198.   From header in replies.
  1199.  
  1200.   Copy the components and replcomps files which are normally found in
  1201.   /usr/local/lib/mh into your Mail directory and add a line like the
  1202.   following after the Subject header replacing my address with your
  1203.   address:
  1204.  
  1205.     Reply-To: wohler@newt.com
  1206.  
  1207.   [12.92]
  1208.   
  1209. Subject: How can I change my From header?
  1210. From: Using MH-44
  1211.  
  1212.   If you're just interested in changing the hostname, add a line to
  1213.   $LIB/mtstailor:
  1214.  
  1215.     localname: desired_host_name
  1216.  
  1217.   --Bill Wisner <wisner@netcom.com> [12.92]
  1218.  
  1219.   Just put a "From:" header in your "components", "replcomps" and
  1220.   "forwcomps" files.  MH will add a "Sender:" header with what it thinks
  1221.   is your real address, but (almost) no one cares about the "Sender:"
  1222.   header anyway.  --Jerry Peek <jerry@ora.com>  [12.92]
  1223.  
  1224.   
  1225. Subject: What to do with "bad address 'xxx' - no at-sign after local-part".
  1226. From: Using MH-45
  1227.  
  1228.   You may find that post returns the following message:
  1229.  
  1230.     post: bad address 'Mr. Foo Bar <fb@somewhere.edu>' - no at-sign
  1231.     after local-part (Bar), continuing...
  1232.  
  1233.   The unquoted dot causes "Mr. Foo" to be parsed as the local part of
  1234.   the address.  Either remove the dot, or rewrite the address as
  1235.   follows: 
  1236.  
  1237.     "Mr. Foo Bar" <fb@somewhere.edu>
  1238.     (Mr. Foo Bar) <fb@somewhere.edu>
  1239.     (Mr. Foo Bar) fb@somewhere.edu
  1240.  
  1241.   --Owen Rees <rtor@ansa.co.uk> [1.93]
  1242.  
  1243.   
  1244. Subject: How can I search through multiple folders?
  1245. From: Using MH-46
  1246.  
  1247.   Recurse through the folders (in csh and sh):
  1248.  
  1249.   % foreach f (`folders -f`)        $ for f in `folders -f`
  1250.   ? pick [switches] +$f            > pick [switches] +$f
  1251.   ? end                    > done
  1252.  
  1253.   Or create a folder that contains links to all messages (in csh and sh):
  1254.  
  1255.     % foreach f (`folders -f | grep -v -x ln`)    
  1256.     ? refile -src +$f -link all +ln        
  1257.     ? end                        
  1258.  
  1259.     $ for f in `folders -f | grep -v -x ln`
  1260.     > do refile -src +$f -link all +ln
  1261.     > done
  1262.  
  1263.   and in the future, refile messages with "refile +folder +ln".  To
  1264.   find something, use:
  1265.  
  1266.     % pick [switches] +ln
  1267.  
  1268.   See MH book sections 7.2.9, 7.8.3. [3.93]
  1269.  
  1270.   
  1271. Subject: Why isn't slocal working?
  1272. From: Using MH-47
  1273.  
  1274.   If slocal doesn't appear to be doing anything, run the following
  1275.  
  1276.     /usr/local/lib/mh/slocal -user your_login -verbose < file
  1277.  
  1278.   where "file" is some message in a mail folder.  If you get something
  1279.   like: 
  1280.   
  1281.     .maildelivery: ownership/modes bad (0, 154,154,0100666)
  1282.  
  1283.   your .maildelivery is writable by too many people.  Make it writable
  1284.   only by you by running "chmod 644 .maildelivery".
  1285.  
  1286.   See also "How do I debug my .maildelivery file?" [3.93]
  1287.  
  1288.   
  1289. Subject: Fixing "post: problem initializing server; [RPLY] 503 Sender already specified"
  1290. From: Using MH-48
  1291.  
  1292.   The problem in sendmail is that the RSET after the ONEX does not
  1293.   reset all the state information.  Normally sendmail fork()s after
  1294.   the Mail from: statement and a RSET causes that child to exit.  This
  1295.   automatically cleans up.  If the fork() is suppressed by ONEX, then
  1296.   the source must be modified to do the cleanup.  See "srvrsmtp.c
  1297.   patch" in the Appendix.  If you don't have the sources, modify your
  1298.   MH sources to not use the ONEX verb.  --Paul Pomes
  1299.   <paul@uxc.cso.uiuc.edu> [3.93]
  1300.  
  1301.   
  1302. Subject: + Why don't MH format commands such as %(friendly) work?
  1303. From: Using MH-49
  1304.   
  1305.   The BERK option disables address parsing and therefore functions
  1306.   such as %(friendly).  Recompile MH without the BERK option. --Anthony
  1307.   Baxter <anthony@aaii.oz.au> [5.94]
  1308.  
  1309.   
  1310. Subject: + How can mail aliases can be expanded in mh-e?
  1311. From: Using MH-50
  1312.  
  1313.   Typing C-c C-w will show you the expanded list of recipients.
  1314.   --Stephen Gildea <gildea@x.org> [5.94]
  1315.  
  1316.   
  1317. Subject: How can I get xmh to use Emacs as the editor?
  1318. From: Xmh-60
  1319.  
  1320.   The modifications to xmh to support an external editor, annotations,
  1321.   and an append command can be found in the these places.  --Bob
  1322.   Ellison <ellison@sei.cmu.edu>
  1323.  
  1324.   ftp.x.org [198.112.44.100]         R5contrib/xmh-mods-R5-1.7.Z    37k
  1325.   ftp.sei.cmu.edu [128.237.2.179]    pub/xmh/xmh-mods-R5-1.7.Z    37k
  1326.                     pub/xmh/xmh-mods-R6-1.0.Z    37k
  1327.  
  1328.   As of R5, xmh has a new action proc called XmhShellCommand.  A
  1329.   string parameter will be executed as a shell command with the
  1330.   currently selected messages as parameters (or the current message if
  1331.   there are no selected messages).
  1332.  
  1333.   Using this new action, a couple of shell scripts, a window version
  1334.   of emacs (e.g. xemacs) and some elisp code, xmh can use emacs as its
  1335.   editor instead of the built in Athena text widget editor.  This
  1336.   doesn't require any source code changes to xmh.  These are included
  1337.   in the appendix "Switching xmh's editor".  --Andrew Wason
  1338.   <aw@bae.bellcore.com> 
  1339.  
  1340.   
  1341. Subject: Does xmh support subfolders?
  1342. From: Xmh-61
  1343.  
  1344.   Yes. Create one by invoking "Create Folder" as usual, and enter
  1345.   something like: existing-folder/new-sub-folder. You can then access
  1346.   the subfolder by popping up a menu over the "existing-folder" button
  1347.   item.  --Steve Malowany <malowany@cenparmi.concordia.ca>
  1348.  
  1349.   But:
  1350.  
  1351.   The R5 version of xmh does *not* handle nested sub-folders.  If you
  1352.   create a folder as 'grab/some/bandwidth', xmh displays this
  1353.   foldername for the remainder of the session where it was created,
  1354.   BUT if you later re-run xmh, the folder is no longer visible to xmh.
  1355.   --John Cooper <jsc@saxon.Eng.Sun.COM>
  1356.  
  1357.   See also MH book section 15.6.2 (14.6.2).
  1358.  
  1359.   
  1360. Subject: How do I precede included messages with ">" when replying in xmh?
  1361. From: Xmh-62
  1362.  
  1363.   Include the following line in your ~/app-defaults/XMh file:
  1364.  
  1365.     Xmh*replyInsertFilter: "sed 's/^/> /'"
  1366.  
  1367.   --Len Makin <len@mel.dit.csiro.au>
  1368.  
  1369.   or, 
  1370.  
  1371.     Xmh.ReplyInsertFilter: /usr/local/lib/mh/mhl -form repl.filter
  1372.  
  1373.   Using this means that you can chose to insert the original by use of
  1374.   the "Insert" button in the Draft message pane.  See "How do I
  1375.   include messages in repl with or without ">"?" to find examples of
  1376.   repl.filter. --Andy Linton <andy.linton@comp.vuw.ac.nz>
  1377.  
  1378.   See also MH book sections 15.1.4 (14.1.4), 16.3.3 (15.2.3).
  1379.  
  1380.   
  1381. Subject: Glossary
  1382. From: Appendix
  1383.  
  1384.   MH    Mail Handler
  1385.   POP3    Post Office Protocol, RFC 1225    
  1386.   MMDF    Multi-channel Memo Distribution Facility
  1387.   MIME    Multipurpose Internet Mail Extensions
  1388.  
  1389.   
  1390. Subject: Acknowledgements
  1391. From: Appendix
  1392.  
  1393. I'd like to thank the following people for providing ideas on the
  1394. layout of this article:
  1395.  
  1396. Joe Wells <jbw@bigbird.bu.edu>          Richard M. Stallman <rms@gnu.ai.mit.edu>
  1397. David Elliott <dce@smsc.sony.com>     Tom Christiansen <tchrist@convex.com>
  1398. Eugene N. Miya <eugene@nas.nasa.gov>
  1399.  
  1400.  
  1401. We are also grateful to the individuals mentioned below and in the
  1402. text of this document who have provided answers or other information
  1403. to make this a better document.  I regret that it is possible that
  1404. some names have been accidently omitted.  I would also like to thank
  1405. all the readers of comp.mail.mh.
  1406.  
  1407. Kim F. Storm <storm@olicom.dk>          Edward Vielmetti <emv@ox.com>
  1408.  
  1409.   
  1410. Subject: ! Copyright and Warranty
  1411. From: Appendix
  1412.  
  1413.   Copyright 1994 Bill Wohler    
  1414.  
  1415.   This article is free; you can redistribute it and/or modify it under
  1416.   the terms of the GNU General Public License as published by the Free
  1417.   Software Foundation; either version 2, or (at your option) any later
  1418.   version.
  1419.  
  1420.   This article is distributed in the hope that it will be useful,
  1421.   but WITHOUT ANY WARRANTY; without even the implied warranty of
  1422.   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  1423.   GNU General Public License for more details which can be found
  1424.   in prep.ai.mit.edu[18.71.0.38]:pub/gnu/COPYING.
  1425.  
  1426.   
  1427. Subject: Switching xmh's editor
  1428. From: Appendix
  1429.  
  1430. #! /bin/sh
  1431. # This is a shell archive.  Remove anything before this line, then unpack
  1432. # it by saving it into a file and typing "sh file".  To overwrite existing
  1433. # files, type "sh file -c".  You can also feed this as standard input via
  1434. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  1435. # will see the following message at the end:
  1436. #        "End of shell archive."
  1437. # Contents:  README Xmh.ad xmh-command.el xmhcommand xmhemacs
  1438. # Wrapped by aw@jello on Fri Nov 15 17:10:34 1991
  1439. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  1440. if test -f 'README' -a "${1}" != "-c" ; then 
  1441.   echo shar: Will not clobber existing file \"'README'\"
  1442. else
  1443. echo shar: Extracting \"'README'\" \(1269 characters\)
  1444. sed "s/^X//" >'README' <<'END_OF_FILE'
  1445. XThis is a short description of what to do with each of the enclosed files.
  1446. X
  1447. XXmh.ad
  1448. X  Merge this in with your xmh resources.  If you already have
  1449. X  user defined buttons, then you may need to renumber the
  1450. X  buttons in this resource file.
  1451. X
  1452. Xxmh-command.el
  1453. X  Byte compile this file and put it in your GNU emacs load-path.
  1454. X
  1455. Xxmhcommand
  1456. Xxmhemacs
  1457. X  Put these somewhere in your path.
  1458. X
  1459. X
  1460. XOnce you have installed these, restart the R5 xmh with the new
  1461. Xresources.  When you press the repl, forw or comp buttons
  1462. Xan xemacs window will come up with your draft message.
  1463. X
  1464. XOnce you have written your mail, save it and exit GNU emacs (C-xC-c).
  1465. XYou will be prompted if you want to send the current message.
  1466. XIf you enter 'y', the message will be sent and the output will
  1467. Xbe displayed in an emacs window (in case you use -verbose or -snoop).
  1468. XThen you will be prompted to exit emacs.  Enter 'y' when you are ready.
  1469. X
  1470. XIf you answered 'n' when prompted to send the message,
  1471. Xthen the draft message will be deleted and emacs will exit.
  1472. X
  1473. XYou can modify the Xmh.ad resources to add more buttons.
  1474. XAny MH command which accepts "+folder msg" can be used
  1475. X(e.g. a replx shell script which includes the body of the
  1476. Xmessage being replied to can be bound to a replx button)
  1477. X
  1478. X
  1479. XAndrew Wason
  1480. Xaw@bae.bellcore.com
  1481. END_OF_FILE
  1482. if test 1269 -ne `wc -c <'README'`; then
  1483.     echo shar: \"'README'\" unpacked with wrong size!
  1484. fi
  1485. # end of 'README'
  1486. fi
  1487. if test -f 'Xmh.ad' -a "${1}" != "-c" ; then 
  1488.   echo shar: Will not clobber existing file \"'Xmh.ad'\"
  1489. else
  1490. echo shar: Extracting \"'Xmh.ad'\" \(457 characters\)
  1491. sed "s/^X//" >'Xmh.ad' <<'END_OF_FILE'
  1492. XXmh*CommandButtonCount:            3
  1493. X
  1494. XXmh*commandBox.button1.label:        repl
  1495. XXmh*commandBox.button1.translations:\
  1496. X    #override\n\
  1497. X    <Btn1Up>:    XmhShellCommand(xmhcommand y repl) unset()
  1498. X
  1499. XXmh*commandBox.button2.label:        forw
  1500. XXmh*commandBox.button2.translations:\
  1501. X    #override\n\
  1502. X    <Btn1Up>:    XmhShellCommand(xmhcommand y forw) unset()
  1503. X
  1504. XXmh*commandBox.button3.label:        comp
  1505. XXmh*commandBox.button3.translations:\
  1506. X    #override\n\
  1507. X    <Btn1Up>:    XmhShellCommand(xmhcommand n comp) unset()
  1508. END_OF_FILE
  1509. if test 457 -ne `wc -c <'Xmh.ad'`; then
  1510.     echo shar: \"'Xmh.ad'\" unpacked with wrong size!
  1511. fi
  1512. # end of 'Xmh.ad'
  1513. fi
  1514. if test -f 'xmh-command.el' -a "${1}" != "-c" ; then 
  1515.   echo shar: Will not clobber existing file \"'xmh-command.el'\"
  1516. else
  1517. echo shar: Extracting \"'xmh-command.el'\" \(1294 characters\)
  1518. sed "s/^X//" >'xmh-command.el' <<'END_OF_FILE'
  1519. X;;; These functions are for use with xemacs and xmh.
  1520. X;;; The R5 xmh has a new action - XmhShellCommand which executes
  1521. X;;; a shell command with the current msg as an arg.
  1522. X;;; By executing something like:
  1523. X;;;    XmhShellCommand(xmhcommand repl)
  1524. X;;; you can use xemacs as your editor with xmh.
  1525. X;;;
  1526. X;;; The following elisp functions perform the basic whatnowproc functionality
  1527. X;;; (quitting and deleting, sending)
  1528. X;;;
  1529. X;;; Andrew Wason  aw@bae.bellcore.com
  1530. X
  1531. X
  1532. X;;; Override C-xC-c
  1533. X(define-key indented-text-mode-map "\C-x\C-c" 'xmh-command-send-or-delete)
  1534. X
  1535. X
  1536. X(setq mhdraft (getenv "mhdraft"))    ; save the filename of the draft
  1537. X
  1538. X
  1539. X(find-file mhdraft)            ; load the draft letter
  1540. X(indented-text-mode)
  1541. X(setq draft-buffer (current-buffer))    ; save the buffer the draft is in
  1542. X
  1543. X
  1544. X(defun xmh-command-send-or-delete ()
  1545. X  "Prompt to send or delete letter, then quit."
  1546. X  (interactive)
  1547. X  (set-buffer draft-buffer)
  1548. X  (if (y-or-n-p "Send message? ")
  1549. X      (progn
  1550. X    (save-buffer)                ; save the draft buffer
  1551. X    (message "Sending...")
  1552. X    (pop-to-buffer "MH mail delivery"); pop to a buffer for "send" output
  1553. X    (erase-buffer)
  1554. X    (call-process "send" nil t t mhdraft)    ; call MH "send"
  1555. X    (if (y-or-n-p "Exit? ")
  1556. X        (kill-emacs)))            ; exit emacs
  1557. X    (delete-file mhdraft)            ; delete the draft letter
  1558. X    (kill-emacs)))                ; exit emacs
  1559. END_OF_FILE
  1560. if test 1294 -ne `wc -c <'xmh-command.el'`; then
  1561.     echo shar: \"'xmh-command.el'\" unpacked with wrong size!
  1562. fi
  1563. # end of 'xmh-command.el'
  1564. fi
  1565. if test -f 'xmhcommand' -a "${1}" != "-c" ; then 
  1566.   echo shar: Will not clobber existing file \"'xmhcommand'\"
  1567. else
  1568. echo shar: Extracting \"'xmhcommand'\" \(669 characters\)
  1569. sed "s/^X//" >'xmhcommand' <<'END_OF_FILE'
  1570. X#!/bin/sh
  1571. X# This shell should be invoked by the xmh XmhShellCommand() action as
  1572. X#   XmhShellCommand(xmhcommand y repl)
  1573. X#   XmhShellCommand(xmhcommand n comp) etc.
  1574. X# If the second arg is y, then the message list will be used.
  1575. X
  1576. X# We invoke the passed MH command on the identified message
  1577. X# (we must strip the message number and folder from the pathname)
  1578. X(if [ $1 = "y" ]
  1579. Xthen
  1580. X    $2 -whatnowproc xmhemacs +`dirname \`echo $3 | \
  1581. X        sed "s;\\\`mhpath +\\\`/;;"\`` `basename $3`
  1582. X
  1583. X# You can use this more readable version instead if you have ksh
  1584. X#    $2 -whatnowproc xmhemacs +$(dirname $(echo $3 | \
  1585. X#        sed "s;$(mhpath +)/;;")) $(basename $3)
  1586. X
  1587. Xelse
  1588. X    $2 -whatnowproc xmhemacs
  1589. Xfi)&
  1590. END_OF_FILE
  1591. if test 669 -ne `wc -c <'xmhcommand'`; then
  1592.     echo shar: \"'xmhcommand'\" unpacked with wrong size!
  1593. fi
  1594. chmod +x 'xmhcommand'
  1595. # end of 'xmhcommand'
  1596. fi
  1597. if test -f 'xmhemacs' -a "${1}" != "-c" ; then 
  1598.   echo shar: Will not clobber existing file \"'xmhemacs'\"
  1599. else
  1600. echo shar: Extracting \"'xmhemacs'\" \(116 characters\)
  1601. sed "s/^X//" >'xmhemacs' <<'END_OF_FILE'
  1602. X#!/bin/sh
  1603. X# Invoke xemacs and load the xmh-command.el stuff.
  1604. X# xmhemacs is used by xmhcommand
  1605. Xxemacs -l xmh-command
  1606. END_OF_FILE
  1607. if test 116 -ne `wc -c <'xmhemacs'`; then
  1608.     echo shar: \"'xmhemacs'\" unpacked with wrong size!
  1609. fi
  1610. chmod +x 'xmhemacs'
  1611. # end of 'xmhemacs'
  1612. fi
  1613. echo shar: End of shell archive.
  1614. exit 0
  1615.  
  1616.   
  1617. Subject: babyl2mh.pl
  1618. From: Appendix
  1619.  
  1620. #!/usr/gnu/bin/perl
  1621. # incorporate an RMAIL babyl file into an MH folder
  1622. #
  1623. # usage: babyl2mh +folder babyl-file
  1624. #
  1625. # V. Khera <khera@cs.duke.edu> 17-JUL-1991
  1626.  
  1627. # where to find rcvstore
  1628. $rcvstore = "/usr/local/lib/mh/rcvstore";
  1629.  
  1630. #
  1631. # pull out command line args
  1632. #
  1633. die "usage: babyl2mh +folder babyl-file\n" unless @ARGV == 2;
  1634.  
  1635. $folder = shift;
  1636. # make sure folder name starts with a "+"
  1637. (substr($folder,0,1) eq "+") || (substr($folder,0,0) = "+");
  1638. $bfname = shift;
  1639.  
  1640. print "Incorporating RMAIL file $bfname into MH folder $folder\n";
  1641.  
  1642. #
  1643. # read in babyl file.
  1644. #
  1645. $/ = "\037";    # this separates the records in a babyl file
  1646. $* = 1;        # records are multi-lines
  1647.  
  1648. open(BABYL,$bfname) || die "Couldn't open $bfname\n";
  1649.  
  1650. $_ = <BABYL>;    # discard header.
  1651.  
  1652. $msgnum = 0;
  1653.  
  1654. while (<BABYL>) {
  1655.   chop;        # get rid of delimeter
  1656.   s/\f(.|\n)*\*\*\* EOOH \*\*\*\n//;    # remove duplicate header information
  1657.   open(RCVSTORE,"|" . $rcvstore . " $folder");
  1658.   print RCVSTORE $_;
  1659.   $msgnum++;
  1660.   print "Message $msgnum done.\n";
  1661. }
  1662.  
  1663.   
  1664. Subject: inco
  1665. From: Appendix
  1666.  
  1667. #!/bin/sh
  1668. # Usage: inco [from [folder]]
  1669. # "from" defaults to $HOME/Mail/outbound, "folder" to +inbox.
  1670.  
  1671. lispfile=/tmp/inco.$$.el
  1672. input=${1-$HOME/Mail/outbound}
  1673. tmpmbox=/tmp/inc.$$.mbox
  1674. folder=${2-+inbox}
  1675.  
  1676. if [ $# -ge 3 ]; then
  1677.     echo Usage: `basename $0` [ from [ folder ]]
  1678.     exit 2
  1679. fi
  1680.  
  1681. trap "rm -f $lispfile $tmpmbox ; exit 1" 1 2 15
  1682.  
  1683. touch $tmpmbox
  1684. chmod 600 $tmpmbox
  1685.  
  1686. echo '(rmail-input "'$input'")
  1687. (rmail-last-message)
  1688. (setq last (rmail-what-message))
  1689. (rmail-show-message 1)
  1690. (while (not (equal (rmail-what-message) last))
  1691.   (rmail-output "'$tmpmbox'")
  1692.   (rmail-delete-forward nil))
  1693. (rmail-output "'$tmpmbox'")
  1694. (kill-buffer (current-buffer))
  1695. ' > $lispfile
  1696.  
  1697. emacs -batch -l $lispfile
  1698. inc -file $tmpmbox $folder
  1699.  
  1700. > $input
  1701. rm -f $lispfile $tmpmbox
  1702.  
  1703.   
  1704. Subject: srvrsmtp.c patch
  1705. From: Appendix
  1706.  
  1707. >From the 5.67 sources:
  1708.  
  1709. *** srvrsmtp.c-    Mon Feb 22 12:25:54 1993
  1710. --- srvrsmtp.c    Mon Feb 22 12:29:09 1993
  1711. ***************
  1712. *** 384,389 ****
  1713. --- 384,395 ----
  1714.               message("250", "Reset state");
  1715.               if (InChild)
  1716.                   finis();
  1717.   
  1718.               /* clean up a bit if running in parent */
  1719.               hasmail = FALSE;
  1720.               dropenvelope(CurEnv);
  1721.               CurEnv = newenvelope(CurEnv);
  1722.               CurEnv->e_flags = BlankEnvelope.e_flags;
  1723.               break;
  1724.   
  1725.             case CMDVRFY:        /* vrfy -- verify address */
  1726.  
  1727.  
  1728. Local Variables:
  1729. mode: outline
  1730. outline-regexp: "^Subject:"
  1731. fill-prefix: "  "  
  1732. eval: (progn (setq buffer-read-only nil) (hide-body))
  1733. End:
  1734.  
  1735.  
  1736.